package algorithm;

import java.awt.Point;

public abstract class AbstractDistanceFinder {

	public abstract Point[] findMinimumDistance(Point[] points);

	public double calcDistance(Point pt1, Point pt2) {
		 return Math.sqrt((pt1.x - pt2.x) * (pt1.x - pt2.x) + (pt1.y - pt2.y)
		 * (pt1.y - pt2.y));
	}
}
